<!DOCTYPE html>


<html>


<head> <meta charset="utf-8">
  <title>我的收藏</title>
  <meta name="spm-id" content="a1z2k">
  <meta name="description" content="">
  <meta name="keywords" content="">



<link rel="stylesheet" href="//g.alicdn.com/tbc/global/0.0.8/index-min.css">
<script>"function"!=typeof Object.assign&&(Object.assign=function(t,n){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(e[c]=o[c])}return e});</script>
<script src="//g.alicdn.com/??kissy/k/6.2.4/seed-min.js,mtb/lib-promise/3.1.3/polyfillB.js,mtb/lib-mtop/2.4.2/mtop.cmd.js" data-config="{combine:true}"></script>
<script> define('@ali/lib-promise/build/polyfillB', function(require, module, exports){ module.exports = Promise; }); </script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>




  
  







<!-- page export styles  -->


<link rel="stylesheet" href="//g.alicdn.com/tb-mod/??act-201712-my-footmark-pc/0.0.11/index.css,foot-search-pc/0.0.3/index.css"> 



<!-- page export styles end -->



<!-- grid style start -->
<link rel="stylesheet" href="https://g.alicdn.com/tms/layouts/0.0.5/layout-pc.css">
<!-- grid style end  -->


<style>.ww-light{overflow:hidden;}.ww-block{display:block;margin-top:3px;}.ww-inline{display:inline-block;vertical-align:text-bottom;}.ww-light a{background-image: url("//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif");background-image: -webkit-image-set(url("//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif") 1x,url("//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif") 4x);background-image: -moz-image-set(url("//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif") 1x,url("//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif") 4x);background-image: -o-image-set(url("//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif") 1x,url("//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif") 4x);background-image: -ms-image-set(url("//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif") 1x,url("//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif") 4x);text-decoration:none!important;width:20px;height:20px;zoom:1;}.ww-large a{width:67px;}a.ww-offline{background-position:0 -20px;}a.ww-mobile{background-position:0 -40px;}.ww-small .ww-online{background-position:-80px 0;}.ww-small .ww-offline{background-position:-80px -20px;}.ww-small .ww-mobile{background-position:-80px -40px;}.ww-static .ww-online{background-position:-110px 0;}.ww-static .ww-offline{background-position:-110px -20px;}.ww-static .ww-mobile{background-position:-110px -40px;}.ww-light a span{display:none;}</style><style>
  .tb-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 125px;
    margin-top: 20px;
    padding-bottom: 9px;
    background-color: #fff;
    font-size: 12px;
  }
  .tb-footer p {
    padding-bottom: 8px;
    overflow: hidden;
    *zoom: 1;
  }
  .tb-footer b {
    margin: 0 3px;
    font-weight: 400;
    color: #ddd;
  }
  .tb-footer em,
  .tb-footer span {
    color: #9c9c9c;
  }
  .tb-footer em {
    margin-left: 30px;
    font-style: normal;
  }
  .tb-footer span {
    margin: 0 4px;
  }
  .tb-footer .tb-footer-hd,
  .tb-footer .tb-footer-bd,
  .tb-footer .tb-footer-ft {
    width: 1190px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .tb-footer .tb-footer-hd a,
  .tb-footer .tb-footer-bd a {
    white-space: nowrap;
    color: #6c6c6c;
    text-decoration: none;
  }
  .tb-footer .tb-footer-hd a:hover,
  .tb-footer .tb-footer-bd a:hover {
    color: #f40;
    text-decoration: none;
  }
  .tb-footer .tb-footer-hd {
    padding-top: 7px;
    border-top: 1px solid #ddd;
  }
  .tb-footer .tb-footer-hd p {
    margin-bottom: 8px;
    line-height: 27px;
    border-bottom: 1px solid #ddd;
  }
  .tb-footer .tb-footer-ft a {
    margin-right: 15px;
  }
  .tb-footer .tb-footer-mod {
    height: 40px;
    display: inline-block;
    background-repeat: no-repeat;
    vertical-align: middle;
  }
  .tb-footer-with-logo {
    min-height: 170px;
  }
</style><script src="//g.alicdn.com/secdev/sufei_data/3.9.9/index.js" id="aplus-sufei"></script><script src="//g.alicdn.com/AWSC/et/1.62.1/et_f.js"></script><script async="" src="//log.mmstat.com/eg.js?t=1639852533132"></script></head>
  <meta charset="utf-8">
  <title>淘宝足迹</title>
  <meta name="spm-id" content="a1z2k">
  <meta name="description" content="">
  <meta name="keywords" content="">



<link rel="stylesheet" href="//g.alicdn.com/tbc/global/0.0.8/index-min.css" />
<script>"function"!=typeof Object.assign&&(Object.assign=function(t,n){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(e[c]=o[c])}return e});</script>
<script src='//g.alicdn.com/??kissy/k/6.2.4/seed-min.js,mtb/lib-promise/3.1.3/polyfillB.js,mtb/lib-mtop/2.4.2/mtop.cmd.js' data-config="{combine:true}"></script>
<script> define('@ali/lib-promise/build/polyfillB', function(require, module, exports){ module.exports = Promise; }); </script>

<!-- page export styles  -->


<link rel="stylesheet" href="//g.alicdn.com/tb-mod/??act-201712-my-footmark-pc/0.0.11/index.css,foot-search-pc/0.0.3/index.css"> 



<!-- page export styles end -->



<!-- grid style start -->
<link rel="stylesheet" href="https://g.alicdn.com/tms/layouts/0.0.5/layout-pc.css" />
<!-- grid style end  -->


</head>
<body data-spm="11010449"><script id="tb-beacon-aplus" src="//g.alicdn.com/alilog/mlog/aplus_v2.js" exparams="category=&amp;userid=2207777666407&amp;aplus&amp;udpid=UUphzWCYhr4PVyeGwA%253D%253D&amp;&amp;yunid=&amp;e3e4573be7777&amp;trid=791f1f1b16398525325796489e&amp;asid=AWe1zQn0Kb5hCNp1QgAAAADNIQ6AeQyQXA=="></script><script>
with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","category=&userid=2207777666407&aplus&udpid=UUphzWCYhr4PVyeGwA%253D%253D&&yunid=&e3e4573be7777&trid=791f1f1b16398525325796489e&asid=AWe1zQn0Kb5hCNp1QgAAAADNIQ6AeQyQXA==",id="tb-beacon-aplus",src=(location>"https"?"//g":"//g")+".alicdn.com/alilog/mlog/aplus_v2.js")
</script>

<!-- nav block start -->
<!-- exported styles -->


<link rel="stylesheet" type="text/css" href="//g.alicdn.com/tb-mod/??tb-top/0.0.4/index.css">




  
      
  <!--region -->
            
                
     

<!--[if lt IE 9]>
<style>html,body{overflow:hidden;height:100%}</style>
<div class="tb-ie-updater-layer"></div>
<div class="tb-ie-updater-box" data-spm="20161112">
  <a href="https://www.google.cn/intl/zh-CN/chrome/browser/desktop/" class="tb-ie-updater-google" target="_blank" data-spm-click="gostr=/tbieupdate;locaid=d1;name=google">谷歌 Chrome</a>
  <a href="http://www.uc.cn/ucbrowser/download/" class="tb-ie-updater-uc" target="_blank" data-spm-click="gostr=/tbieupdate20161112;locaid=d2;name=uc">UC 浏览器</a>"
</div>
<![endif]-->
<script src="//g.alicdn.com/??kg/global-util/1.0.7/index-min.js,tb/tracker/4.0.1/p/index/index.js,kg/tb-nav/2.5.3/index-min.js"></script>
<script>if (window.KISSY && /^1\.4/.test(KISSY.version)) {KISSY.config({modules:{'flash':{alias:['gallery/flash/1.0/']}}});}KISSY.use('kg/global-util/1.0.7/',{sync:true});KISSY.config({modules: {'kg/tb-nav':{alias:'kg/tb-nav/2.5.3/',requires:['kg/global-util/1.0.7/']}}});KISSY.ready(function(){KISSY.use('kg/tb-nav')});</script>


</div>
            
  <!--region -->
      
  

<!-- exported scripts -->


<script src="//g.alicdn.com/tb-mod/??tb-top/0.0.4/index.js"></script>
<link rel="stylesheet" href="css/logo.css" />



<script>
if(window.__tms_block_datas__ && __tms_block_datas__[178871] && __tms_block_datas__[178871].modules){
  __tms_block_datas__.nav = __tms_block_datas__[178871];
}
</script>
<!-- nav block end -->


<!-- body start -->


<div class=" page-layout page-main-content" data-page-id="178835">
  
  <!-- container -->
  <div class="layout layout-grid-0">
  <!--row -->
    <div class="grid-0">
      
  <!-- col -->
      
        <div class="col col-main">
            <div class="main-wrap J_Region">
      
            
                    
                    <!-- module -->
                    
                    <div data-spm="931860" data-moduleid="0" data-name="foot-search-pc" data-guid="931860" id="guid-931860" data-scene-id="1283951" data-scene-version="0" data-hidden="" data-gitgroup="tb-mod" data-ext="" data-engine="tce" class="foot-search-pc J_Module" tms="foot-search-pc/0.0.3" tms-datakey="tce/1283951" tms-data="{&quot;moduleinfo&quot;:{},&quot;txts&quot;:[{&quot;data_para&quot;:{&quot;tce_vid&quot;:&quot;0&quot;,&quot;tce_sid&quot;:2378680,&quot;env&quot;:&quot;online&quot;},&quot;tms_type&quot;:&quot;jsonp&quot;,&quot;data_type&quot;:&quot;tceonline&quot;}],&quot;countinfo&quot;:{&quot;txts&quot;:{&quot;length_pc&quot;:1,&quot;length&quot;:1}},&quot;$tmsId&quot;:&quot;tce/1283951&quot;}"><div class="J_ModContainer">
  <div class="module-wrap">
    <div class="foot-search">
      <div id="main-nav" style="background-color: #b31e22;">
        <div class="main-nav-con" style="background-color: #b31e22;">
          <h1 id="taobao-logo">
           <li id="logo" style="    position: absolute;
    top: 0px;"></li>
            
          </h1>
          <div class="main-nav-menu">
            <form action="//s.taobao.com/search" method="get" target="_blank">
              <input class="J_FormInput same-banner-form_input" type="text" placeholder="请输入要搜索的词" id="itemUrl" name="q" value="">
              <button class="J_FormButton same-banner-form_coll" type="submit" data-link="/similar.htm" data-snstracelog="tbgltjph.4.6">搜 索</button>
            </form>
          </div>
        </div>

      </div>
    </div>
  </div>
</div>
</div>
                    <!--module -->
                  
            
          
          </div>
          
        </div>
  <!--col -->
      
    </div>
  <!-- row -->
  </div>
  <!-- container -->
  
  <!-- container -->
  <div class="layout layout-grid-0">
  <!--row -->
    <div class="grid-0">
      
  <!-- col -->
      
        <div class="col col-main">
            <div class="main-wrap J_Region">
      
            
                    
                    <!-- module -->
                    
                    <div data-spm="931864" data-moduleid="0" data-name="act-201712-my-footmark-pc" data-guid="931864" id="guid-931864" data-scene-id="1283955" data-scene-version="0" data-hidden="" data-gitgroup="tb-mod" data-ext="" data-engine="tce" class="act-201712-my-footmark-pc J_Module" tms="act-201712-my-footmark-pc/0.0.11" tms-datakey="tce/1283955"><div class="J_ModContainer">
  <div class="module-wrap J_Title" data-title="我的收藏" data-spm-anchor-id="a1z2k.11010449.931864.i0.444c509d5B8ooU">
  
    <div class="reds-list">

    	<div class="line-mask"></div>
    	<div class="item-list J_redsList" data-spm-anchor-id="a1z2k.11010449.931864.i1.444c509d5B8ooU" id="zuji">
  
  
   
  <!---->
 
   
   
 
  <script>
  		function getCookie(cookieName) {
    var strCookie = document.cookie;
    var arrCookie = strCookie.split("; ");
    for(var i = 0; i < arrCookie.length; i++){
        var arr = arrCookie[i].split("=");
        if(cookieName == arr[0]){
            return arr[1];
        }
    }
    return "";
}
  	var userid = /*eval('(' + location.search.slice(1).split("=")[1]+ ')')*/getCookie("userid")

	chaxundingdan ()
	function chaxundingdan()
	{
		
		var str = "";
		$.ajax({
			type:"post",
			url:"http://localhost:16111/user/select_collect_goods",
			Datatype:"json",
			data:{userid:userid},
			xhrFields:{withCredentials: true},
			success:function (data)
			{	
				var user = eval('(' + JSON.stringify(data) + ')');
						if(user.error=="select == null")
				{
					$("#meiy").html("<tr class=\'order-item\'><td colspan=\'6\'><div class=\'empty-msg\'>               没有任何收藏，家里好像缺了点什么！<br><a href='index.html'>          要不瞧瞧去？</a></div></td></tr>")
					return;
				}
				
				for(var i in user.data)
				{
					
					 
					str += "<div class=\"item-box J_goods\">"+
    						"<div class=\"goods-date\" style=\"width: 259px;\"></div>"+
						     "<div class=\"tracks_id\" style=\"display: none;\">"+user.data[i].goods_id+"</div>"+
								"<a class=\"item\" href=\"item_show.html\" target=\"_blank\"></a>"+
							  "<div class=\"img-box J_box\"><a class=\"item\" href=\"item_show.html\"  target=\"_blank\">"+
							   " <img alt=\"\" class=\"aaa\" src="+user.data[i].t_commodity.commodity_picture+"></a>"+
							 "<a class=\"icon-content J_icon\"  style=\"display: inherit;\" >"+
          					"<span class=\"iconfont icon-lajitongshanchu\" style=\"font-size: 29px;\">删</span></a></div>"+
							" <div class=\"item-info\">"+
							    "<div class=\"price-box\">"+
							      "<span class=\"price-new\"><i>¥</i>"+user.data[i].t_commodity.commodity_price+"</span>"+
							   "</div>"+
							    "<div class=\"title\">"+user.data[i].t_commodity.commodity_description+"</div></div>"+
							     "</div>";
				}
					$("#zuji").html(str)
			
			}
		});
	}
	
</script>
   <script>
  	$(document).on("click",".J_icon",function()
  	{
  		if(confirm("确实要删除吗？"))
  		{
            var date1 = $(this).parent().parent().find(".tracks_id").text();
          
                $.ajax({
		    type: "post",//请求方式
		    url: "http://localhost:16111/user/delete_collect_goods",//上s层的路径 
			dataType: "json",
		    data:{goods_id:parseInt(date1)},//传值
		    xhrFields:{withCredentials: true},
		    success: function (data)
			{
				var user = eval('(' + JSON.stringify(data) + ')');
				
				if(user.data!=0)
				{
					window.location.reload();
				}else
				{
					alert("删除失败")
				}
				
		   }
		});  
                 
      }else {
          return;
      }
  	})
  	
  
  </script>

</div>

    </div>
  </div>
</div>
</div>
                    <!--module -->
                  
            
          
          </div>
          
        </div>
  <!--col -->
      
    </div>
  <!-- row -->
  </div>
  <!-- container -->
  
</div>

<!-- body end -->




<!-- seed start -->




<!-- seed end -->
<!-- page export scripts  -->

<script>
//mode:render
window.define && define('@page/data',[], function(require, exports, module) {
  var page = {
    pageId:'178835',
    theme:'',
    backgroundColor:'',
    charset:'utf-8',
    title:'收藏',
    spmA:'a1z2k',
    spmB:'11010449',
    keyword:'',
    description:'',
    hostname:'',
    env:'production',
    deviceType:'pc'
  };
  var modules = [];
  //block nav data
  try{ modules = modules.concat(window.__tms_block_datas__.nav.modules); }catch(e){};

  
    
      
         
        modules.push({
          id:"931860",
          name:"foot-search-pc",
          attrs:[][0] || {},
          engine:"tce",
          fullName:'upx/tb-mod/foot-search-pc',
          data:[{"moduleinfo":{},"txts":[{"data_para":{"tce_vid":"0","tce_sid":2378680,"env":"online"},"tms_type":"jsonp","data_type":"tceonline"}],"countinfo":{"txts":{"length_pc":1,"length":1}}}][0] || {}
        });
        
      
    
  
    
      
         
        modules.push({
          id:"931864",
          name:"act-201712-my-footmark-pc",
          attrs:[][0] || {},
          engine:"tce",
          fullName:'upx/tb-mod/act-201712-my-footmark-pc',
          data:[{"moduleinfo":{}}][0] || {}
        });
        
      
    
  

  //block footer data
  try{ modules = modules.concat(window.__tms_block_datas__.footer.modules); }catch(e){};
  module.exports = {
    page: page,
    modules: modules
  };
});
</script>

<script src="//g.alicdn.com/code/npm/@ali/??straw/1.0.1/index.cmd.js,xctrl/7.1.3/xctrl-kissy.cmd.js,pi-kissy-pc/0.0.27/index.cmd.js,pi-kissy-pc/0.0.32/mod-base.cmd.js,xtemplate/4.5.0/runtime.cmd.js,datalazyload/6.0.10/index.cmd.js"></script><script src="//g.alicdn.com/tb-mod/??act-201712-my-footmark-pc/0.0.11/index.js,foot-search-pc/0.0.3/index.js"></script> 



<!-- page export scripts end -->
<!-- init scripts start -->

<script src="//g.alicdn.com/code/npm/@ali/init-kissy-pc/0.0.11/index.js"></script>

<!-- init scripts end -->








<div id="meiy" style="width: 100%;
    font-size: 30px;
    position: absolute;
    left: 400px;">
 	
 </div>

</body>
</html>


